package com.hw.backapi.controller;

import com.aliyun.oss.OSSBuilder;
import com.aliyun.oss.OSSClientBuilder;
import com.hw.backapi.service.INappyBrandService;
import com.hw.common.contants.UrlContants;
import com.hw.model.common.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 尿不湿控制器
 */
@RestController
public class NappyController {

    @Autowired
    INappyBrandService nappyBrandServiceImpl;

    /**
     * 获取尿不湿品牌三级联动
     * @return
     */
    @GetMapping(UrlContants.NAPPY_THREE_LEVEL)
    public BaseResult nappyThreeLevelData(){
        return BaseResult.ok(nappyBrandServiceImpl.getThreeLevelData());
    }
}
